package com.yanboo.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.function.Function;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Dict {
    /**
     *键列名
     * @return
     */
    String key() default "label";

    /**
     * 值列名
     * @return
     */
    String valCol() default "value";

    /**
     *
     * @return
     */
    Class<?> entity() default com.yanboo.modules.system.domain.DictDetail.class;

    /**
     *
     * @return
     */
    String server() default "";
}
